//
//  AppDelegate.m
//  SHDrawerController
//
//  Created by UUPlant on 2022/4/7.
//

#import "AppDelegate.h"
#import "SHDrawerController.h"
#import "SHLeftViewController.h"
#import "SHCenterViewController.h"
#import "SHRightViewController.h"

@interface AppDelegate ()

@end

@implementation AppDelegate


- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    // Override point for customization after application launch.
    SHLeftViewController *leftVC = [[SHLeftViewController alloc] init];
    SHRightViewController *rightVC = [[SHRightViewController alloc] init];
    
    SHCenterViewController *centerViewController = [[SHCenterViewController alloc] init];
    UINavigationController *centerNAV = [[UINavigationController alloc] initWithRootViewController:centerViewController];
    
    SHDrawerController *drawerController = [[SHDrawerController alloc] initWithCenterViewController:centerNAV leftVC:leftVC rightVC:rightVC];
    
    self.window = [[UIWindow alloc] initWithFrame: UIScreen.mainScreen.bounds];
    self.window.rootViewController = drawerController;
    [self.window makeKeyAndVisible];
    
    return YES;
}
@end
